package net.huashitong.ssydt.pk.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import net.huashitong.ssydt.pk.entity.SsPkYmdxMyRank;
import net.huashitong.ssydt.pk.entity.SsPkYzddMyRank;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.12.15
 */
public class MyRankVO implements Serializable {

    private static final long serialVersionUID = -6036276418983599451L;
    @ApiModelProperty(value = "本轮排名")
    private Integer ranking;//本轮排名
    @ApiModelProperty(value = "本轮最高成绩")
    private BigDecimal highestScore;//本轮最高成绩
    @ApiModelProperty(value = "上轮排名")
    private Integer lastRanking;//上轮排名
    @ApiModelProperty(value = "上轮最高成绩")
    private BigDecimal lastHighestScore;//上轮最高成绩

    public MyRankVO(SsPkYmdxMyRank myRank) {
        this.ranking = myRank.getRanking();
        this.highestScore = myRank.getHighestScore();
        this.lastRanking = myRank.getLastRanking();
        this.lastHighestScore = myRank.getLastHighestScore();
    }

    public MyRankVO() {
    }

    public MyRankVO(SsPkYzddMyRank myRank) {
        this.ranking = myRank.getRanking();
        this.highestScore = myRank.getHighestScore();
        this.lastRanking = myRank.getLastRanking();
        this.lastHighestScore = myRank.getLastHighestScore();
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getRanking() {
        return ranking;
    }

    public void setRanking(Integer ranking) {
        this.ranking = ranking;
    }

    public BigDecimal getHighestScore() {
        return highestScore;
    }

    public void setHighestScore(BigDecimal highestScore) {
        this.highestScore = highestScore;
    }

    public Integer getLastRanking() {
        return lastRanking;
    }

    public void setLastRanking(Integer lastRanking) {
        this.lastRanking = lastRanking;
    }

    public BigDecimal getLastHighestScore() {
        return lastHighestScore;
    }

    public void setLastHighestScore(BigDecimal lastHighestScore) {
        this.lastHighestScore = lastHighestScore;
    }
}
